﻿using System.Diagnostics;
namespace AnyTap.Models;

/// <summary>
/// 手势参数
/// </summary>
/// <param name="X">X</param>
/// <param name="Y">Y</param>
/// <param name="Key">按键</param>
/// <param name="Delay">延迟</param>
/// <param name="Cycle">连击次数</param>
[DebuggerDisplay($"{{{nameof(X)}}},{{{nameof(Y)}}},{{{nameof(Key)}}},{{{nameof(Delay)}}},{{{nameof(Cycle)}}}")]
public record class TapGesture(GestureType Type, double X, double Y, int Key, bool IsEnable, int Delay, int Cycle = 1);

/// <summary>
/// 类型
/// </summary>
public enum GestureType
{
	Click,
	Move,
#if ANDROID
	TouchDown, TouchUp,
#else
	MouseLeftDown, MouseLeftUp, MouseMiddleDown, MouseMiddleUp, MouseRightDown, MouseRightUp, MouseWheel, KeyDown, KeyUp
#endif
}
